<div class="select-box layui-form">
    <form action="/controller/extender/unit/view/unit-list.php?nav-itemed=unit" >


        <table>
            <tr>
                <td><!--<div style="float:right">-->
                    <div class="layui-form-item">
                        <label class="layui-form-label">关键词</label>
                        <div class="layui-input-block">
                            <input type="text" name="select_keywords" placeholder="可搜索单位名称，标题等信息" autocomplete="off" class="layui-input" value="<? echo $_REQUEST['select_keywords']?>" >
                        </div>
                    </div>

                </td>
                <td style="    width:200px; vertical-align: top;">
                    <button class="layui-btn" type="reset" style="margin-left: 25px;">重置</button>
                    <button class="layui-btn" type="submit" ><i class="layui-icon">&#xe615;</i>查找</button>
                </td>
            </tr>
        </table>



        <Style>
            .search-key-word{margin-top: 15px; margin-left: 15px; font-size: 10px;}
            .search-key-word a{ padding: 0 4px; color: #009e94}
        </Style>
        <div class="search-key-word">常用单位:

            <? $nearly_case=select_lines_all_items($table_Prefix."case","nid desc","status = '进行中' ","20");
            $nearly_unit_nid= transform_2darray_in_1darray_number_as_key($nearly_case,'unit');

            //获取本页用到的单位的名字
            $unit_nid_list_str=implode("','",$nearly_unit_nid);
            $search_unit_list=select_lines_all_items($table_Prefix."unit","","nid in ('".$unit_nid_list_str."')","");
            $search_unit_name_list=transform_2darray_in_1darray_with_new_key($search_unit_list,"nid","sname");

            ?>


            <?
            foreach($search_unit_name_list as $k => $v) {

                ?>
                <a href="../../unit/view/detail-statistic.php?&nid=<?echo $k?>&nav-itemed=unit"> <?echo $v?> </a> |

                <?
            }
            ?>

        </div>



    </form>
    <br class="clearfloat"/>

</div>